package com.bishe.psy.utils;

import org.apache.commons.codec.digest.DigestUtils;

/**MD5加密工具类
 * Created with Intellij IDEA.
 * Description:
 * User: L
 * Date: 2024-03-22
 * Time: 16:32
 */
public class MD5Util {

    public static String md5(String str) {
        return DigestUtils.md5Hex(str);
    }


    public static String md5(String str,String salt) {
        return md5(md5(str) + salt);
    }

}
